package com.buaa.pm.feign;

import com.alibaba.fastjson.JSONObject;
import com.buaa.pm.feign.fallback.ExtractClientFallback;
import com.buaa.pm.model.dto.ParamRequestDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "param-extract", url = "192.168.0.185:8025",fallback = ExtractClientFallback.class)
public interface ExtractClient {
    @PostMapping(value = "/extract", produces = {MediaType.APPLICATION_JSON_UTF8_VALUE}, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
    JSONObject getParam(ParamRequestDTO paramRequestDTO);
}
